package com.gao.domain;

public class Product {
	private int pid;
	private String name;
	private String img;
	private String desc;
	private double price;
	private int num;
	
	public Product(int pid, String name, String img, double price) {
		super();
		this.pid = pid;
		this.name = name;
		this.img = img;
		this.price = price;
	}
	public Product() {
		super();
	}
	public Product(int pid, String name, String img, String desc, double price, int num) {
		super();
		this.pid = pid;
		this.name = name;
		this.img = img;
		this.desc = desc;
		this.price = price;
		this.num = num;
	}
	
	public Product(int pid) {
		super();
		this.pid = pid;
	}
	public Product(int pid, String name, double price) {
		super();
		this.pid = pid;
		this.name = name;
		this.price = price;
	}

	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	@Override
	public String toString() {
		return "Product [pid=" + pid + ", name=" + name + ", img=" + img + ", desc=" + desc + ", price=" + price
				+ ", num=" + num + "]";
	}
	

}
